package com.bailian.snails.feigin;

import com.bailian.snails.config.FeginConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author gaoxu
 * date: Created on 2021/6/17 下午7:36
 */
@FeignClient(value = "snails-mall-user", path = "/snails-mall-user", configuration = FeginConfig.class)
public interface UserClient {

    @RequestMapping(value = "/user/findOrderByUserId/{userId}", method = RequestMethod.GET)
    String findOrderByUserId(@PathVariable("userId") String userId);

}
